﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace NETMovie.UI.Web.Reports
{
    public partial class SearchResults : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["TableData"] != null)
            {
                DataTable table = Session["TableData"] as DataTable;

                table.Columns[0].ColumnName = "User Name";
                table.Columns[1].ColumnName = "Number of Transactions";
                table.Columns[2].ColumnName = "Total Amount";

                grdReport.DataSource = table;
                grdReport.DataBind();

                Session.Remove("TableData");
            }
        }
    }
}